package xusage.cumulus.log4j.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class CumulusLog4jConfigListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent ctxEvent) {
		CumulusLog4jConfigurer.shutdownLogging(ctxEvent.getServletContext());
	}

	@Override
	public void contextInitialized(ServletContextEvent ctxEvent) {
		CumulusLog4jConfigurer.initLogging(ctxEvent.getServletContext());
	}

}
